package com.example.demo1109.demo5;

public class Test {
    public static void main(String[] args) {
        FanPublic fanPublic = new FanPublic();
        User user = new User("野猪佩奇");
        User user1 = new User("野猪乔治");
        fanPublic.attention(user);
        fanPublic.attention(user1);
        fanPublic.setMsg("欢迎关注");
        fanPublic.mass();
        System.out.println("=====================");
        fanPublic.cancel(user1);
        fanPublic.mass();
        System.out.println("=========================");
        fanPublic.attention(new Fan());
        fanPublic.mass();
    }
}
